#include <stdio.h>
#include <string.h>

typedef struct 
{
    char name[32];
    int age;
    char sex;
}stu_t;

int main(int argc,const char *argv[])
{
    stu_t class [2] =  {
 {"yanglaoshi",18,'M'},
 {"xiaozhang",50,'M'},
 };
        stu_t *p[2];
        p[0] = class;
        p[1] = class+1;

    /*class[0].age = 24;
    strcpy(class[0].name,"xiangbei");
    class[0].sex = 'm';*/

    printf("name = %s--",p[0]->name);
    printf("age = %d--",p[0]->age);
    printf("sex = %c ",p[0]->sex);
    putchar(10);


   /* class[1].age = 2;
    strcpy(class[1].name,"dingzheng");
    class[1].sex = 'n';*/
    printf("name = %s--",p[1]->name);
    printf("age = %d--",p[1]->age);
    printf("sex = %c ",p[1]->sex);
    putchar(10);
    return 0;

}
